/* 首頁特定樣式 */
/* 熱門遊戲推薦圖片樣式 */
.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.game-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

/* 最近更新圖片樣式 */
.recent-post-image {
    width: 80px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.recent-post-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-image img {
    transform: scale(1.05);
}
/* 輪播圖區域 */
.hero-slider {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 添加主橫幅樣式 */
.main-banner {
    background-color: #1a4b8c;
    background-image: linear-gradient(135deg, #1a4b8c 0%, #2c6bc4 100%);
    padding: 40px 0;
    margin-top: 10px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;  /* 添加间距 */
}

.banner-text {
    flex: 1;
    padding-right: 0;  /* 移除右侧内边距，使用gap来控制间距 */
}

.banner-logo {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.banner-slogan {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.banner-offer {
    font-size: 28px;
    color: #ff9d2f;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-description {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.banner-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #16a085;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background-color: #138a72;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.banner-image {
    flex: 1;
    max-width: 55%;  /* 限制最大宽度，让左侧文本有足够空间 */
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 網站標題和介紹 */
.site-title {
    font-size: 28px;
    color: #1a4b8c;
    margin-bottom: 20px;
    text-align: center;
}

/* site-intro 區塊樣式 */
.site-intro {
    margin: 30px 0;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden; /* 防止內容溢出 */
}

.site-intro p {
    margin: 0;
    line-height: 1.6;
    color: #444444;
}

.site-intro img {
    max-width: 100%; /* 確保圖片不會超出容器寬度 */
    height: auto;
    display: block; /* 消除圖片底部間隙 */
    margin: 20px auto; /* 圖片上下留出間距 */
    border-radius: 5px; /* 圖片圓角 */
}

/* 特色區塊標題 */
/* 特色區塊網格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 主内容区域背景 - 深绿色背景 */
.features-grid-container {
    background-color: var(--primary-dark);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.feature-cards {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--primary-dark);
}

.feature-card {
    background: var(--primary-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 2px !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a4b8c;
}

.feature-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}
/* 內容模塊通用樣式 */
.content-section {
    margin: 50px 0;
    padding: 40px 0;
    position: relative;
}

.content-section:nth-child(odd) {
    background-color: #f5f8fc;
}

.content-section:nth-child(even) {
    background-color: #ffffff;
}

/* 合作夥伴標題 */
.partners-title {
    font-size: 24px;
    color: #1a4b8c;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.partners-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff9d2f;
}

/* 支付方式和责任博彩区块样式 */
.payment-responsible-section {
    background-color: #ffffff;
    padding: 50px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 24px;
    color: #1a4b8c;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff9d2f;
}

/* 支付方式区块样式 */
.payment-section {
    margin-bottom: 40px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.payment-card {
    background-color: #f5f8fc;
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.payment-icon {
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon img {
    max-height: 70px;
    max-width: 80px;
}

/* 支付方式图标样式 */
.payment-icon i {
    font-size: 48px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.payment-card:hover .payment-icon i {
    transform: scale(1.2);
}

/* 为每个支付图标设置不同颜色 */
.usdt-icon i {
    color: #26A17B;
    filter: drop-shadow(0 3px 6px rgba(38, 161, 123, 0.3));
}

.fps-icon i {
    color: #ED1C24;
    filter: drop-shadow(0 3px 6px rgba(237, 28, 36, 0.3));
}

.bank-icon i {
    color: #1A4B8C;
    filter: drop-shadow(0 3px 6px rgba(26, 75, 140, 0.3));
}

.payment-name {
    font-size: 20px;
    font-weight: bold;
    color: #1a4b8c;
    margin-bottom: 10px;
}

.payment-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* 责任博彩区块样式 */
.responsible-section {
    margin-top: 50px;
}

.responsible-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.responsible-item {
    background-color: #f5f8fc;
    border-radius: 10px;
    padding: 20px;
    width: 160px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.responsible-item:hover {
    transform: translateY(-5px);
}

.responsible-icon {
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.responsible-icon img {
    max-height: 50px;
    max-width: 50px;
}

/* 责任博彩图标样式 */
.responsible-icon i {
    font-size: 36px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.responsible-item:hover .responsible-icon i {
    transform: scale(1.2);
}

/* 为每个图标设置不同颜色 */
.age-icon i {
    color: #FF4B4B;
    filter: drop-shadow(0 2px 4px rgba(255, 75, 75, 0.3));
}

.time-icon i {
    color: #3A7BD5;
    filter: drop-shadow(0 2px 4px rgba(58, 123, 213, 0.3));
}

.wallet-icon i {
    color: #1A4B8C;
    filter: drop-shadow(0 2px 4px rgba(26, 75, 140, 0.3));
}

.check-icon i {
    color: #16a085;
    filter: drop-shadow(0 2px 4px rgba(22, 160, 133, 0.3));
}

.help-icon i {
    color: #FF9D2F;
    filter: drop-shadow(0 2px 4px rgba(255, 157, 47, 0.3));
}

.responsible-text {
    font-size: 14px;
    color: #333333;
    font-weight: 600;
}

/* 合作夥伴區塊 */
.partners {
    background-color: #ffffff;
    padding: 40px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.partner-logo {
    max-width: 150px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 特色卡片標題鏈接樣式 */
.feature-title a {
    color: #1a4b8c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-title a:hover {
    color: #ff9d2f;
}

/* 响应式布局调整 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-banner {
        padding: 30px 0;
    }
    
    .banner-text {
        flex: 1;
    }
    
    .banner-image {
        flex: 1;
        max-width: 50%;
    }
    
    .banner-logo {
        font-size: 40px;
    }
    
    .banner-slogan {
        font-size: 30px;
    }
    
    .banner-offer {
        font-size: 24px;
    }
    
    .payment-methods {
        flex-wrap: wrap;
    }
    
    .payment-card {
        width: calc(50% - 15px);
    }
    
    .responsible-item {
        width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .main-banner {
        padding: 25px 0;
        margin-top: 5px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .banner-text {
        text-align: center;
        margin-bottom: 20px;
        padding-right: 0;
    }
    
    .banner-image {
        max-width: 100%;  /* 在移动端让图片占据全宽 */
    }
    
    .banner-logo {
        font-size: 36px;
    }
    
    .banner-slogan {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .banner-offer {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .banner-description {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-card {
        width: 100%;
        max-width: 320px;
    }
    
    .responsible-item {
        width: calc(50% - 10px);
    }
    
    .feature-cards {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .feature-card {
        margin-top: 2px !important;
        padding: 10px;
    }
    
    .banner-carousel {
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-banner {
        padding: 20px 0;
    }
    
    .banner-logo {
        font-size: 32px;
    }
    
    .banner-slogan {
        font-size: 24px;
    }
    
    .banner-offer {
        font-size: 20px;
    }
    
    .banner-description {
        font-size: 14px;
    }
    
    .banner-button {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    .responsible-item {
        width: 100%;
        max-width: 220px;
    }
}

/* Banner轮播样式 */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 0; /* 移除圆角 */
    overflow: hidden;
    box-shadow: none; /* 移除阴影 */
    aspect-ratio: 16/5;
    max-height: 180px;
    margin: 0 !important;
    padding: 0 !important;
}

.banner-section,
.banner-container {
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    display: none;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0; /* 移除圆角 */
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .main-banner {
        padding: 30px 0;
    }
    
    .banner-carousel {
        height: 160px;  /* 中等屏幕略微降低高度 */
    }
    
    .banner-text {
        flex: 1;
    }
    
    .banner-image {
        flex: 1;
        max-width: 50%;
    }
    
    .banner-logo {
        font-size: 40px;
    }
    
    .banner-slogan {
        font-size: 30px;
    }
    
    .banner-offer {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .main-banner {
        padding: 0; /* 移除内边距 */
        margin-top: 0; /* 移除上边距 */
    }
    
    .banner-carousel {
        height: 140px;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .banner-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .banner-text {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .banner-image {
        max-width: 100%;  /* 在移动端让图片占据全宽 */
    }
    
    .banner-logo {
        font-size: 36px;
    }
    
    .banner-slogan {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .banner-offer {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .banner-description {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-cards {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .feature-card {
        margin-top: 2px !important;
        padding: 10px;
    }
    
    .banner-carousel {
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-banner {
        padding: 20px 0;
    }
    
    .banner-carousel {
        height: 100px;  /* 小屏幕设备高度更小 */
    }
    
    .carousel-indicators {
        bottom: 8px;  /* 在小屏幕上减小指示器与底部的距离 */
    }
    
    .indicator {
        width: 8px;  /* 小屏幕上使用更小的指示器 */
        height: 8px;
    }
    
    .banner-logo {
        font-size: 32px;
    }
    
    .banner-slogan {
        font-size: 24px;
    }
    
    .banner-offer {
        font-size: 20px;
    }
    
    .banner-description {
        font-size: 14px;
    }
    
    .banner-button {
        padding: 10px 25px;
        font-size: 16px;
    }
}

/* Banner副標題樣式 */
.banner-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 用户评论区域样式 */
.user-reviews-section {
    position: relative;
    padding: 40px 0;
    margin-bottom: 40px;
}

.user-reviews-section .section-title {
    font-size: 24px;
    color: #1a4b8c;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.user-reviews-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff9d2f;
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.review-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #3a7bd5;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.rating {
    display: flex;
    color: #ffcc00;
    font-size: 16px;
}

.star {
    margin-right: 2px;
}

.star.half {
    position: relative;
    display: inline-block;
    color: #ddd;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffcc00;
}

.review-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.verified-user {
    display: flex;
    align-items: center;
    color: #16a085;
    font-weight: 500;
}

.verified-user::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
}

.review-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.review-nav-prev,
.review-nav-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a4b8c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.review-nav-prev:hover,
.review-nav-next:hover {
    background-color: #3a7bd5;
    transform: scale(1.1);
}

.view-all-reviews {
    display: block;
    text-align: center;
    margin: 10px auto 0;
    padding: 10px 25px;
    background-color: #16a085;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    max-width: 250px;
}

.view-all-reviews:hover {
    background-color: #138a72;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .review-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .review-card {
        width: 100%;
    }
}

/* 确保轮播图和卡片之间没有多余间距 */
.banner-section + .feature-cards,
.banner-container + .feature-cards {
    margin: 0 !important;
    padding: 0 !important;
}